#pragma once
#include "cocos2d.h"
#include "DataCenter.h"


class StageLayer: public cocos2d::CCLayer
{
private:
	static StageLayer* instance;
	cocos2d::CCRect stages[20];

public:
	static StageLayer* getInstance();
	virtual bool init();
	virtual void onExit();
	virtual void onEnter(); 
	virtual bool ccTouchBegan(cocos2d::CCTouch* touch, cocos2d::CCEvent* event);
	virtual void menuBackCallback(CCObject* pSender);
	virtual void menuMailCallback(CCObject* pSender);
	virtual void menuAppCallback(CCObject* pSender);

	// implement the "static node()" method manually
	LAYER_NODE_FUNC(StageLayer);
};

